Optimal. Leaf size=75 \[ \frac{2 (3 A+C) \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 b^2 C \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0995225, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16, Rules used = {3238, 4045, 3771, 2641} \[ \frac{2 (3 A+C) \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 b^2 C \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3238
Rule 4045
Rule 3771
Rule 2641
Rubi steps
\begin{align*} \int \left (A+C \cos ^2(c+d x)\right ) \sqrt{b \sec (c+d x)} \, dx &=b^2 \int \frac{C+A \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx\\ &=\frac{2 b^2 C \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}}+\frac{1}{3} (3 A+C) \int \sqrt{b \sec (c+d x)} \, dx\\ &=\frac{2 b^2 C \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}}+\frac{1}{3} \left ((3 A+C) \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{2 (3 A+C) \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 b^2 C \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.127726, size = 58, normalized size = 0.77 \[ \frac{\sqrt{b \sec (c+d x)} \left (2 (3 A+C) \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right )+C \sin (2 (c+d x))\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.652, size = 190, normalized size = 2.5 \begin{align*} -{\frac{ \left ( -2+2\,\cos \left ( dx+c \right ) \right ) \left ( 1+\cos \left ( dx+c \right ) \right ) ^{2}}{3\,d \left ( \sin \left ( dx+c \right ) \right ) ^{3}} \left ( 3\,iA\sqrt{ \left ( 1+\cos \left ( dx+c \right ) \right ) ^{-1}}\sqrt{{\frac{\cos \left ( dx+c \right ) }{1+\cos \left ( dx+c \right ) }}}{\it EllipticF} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) }{\sin \left ( dx+c \right ) }},i \right ) \sin \left ( dx+c \right ) +iC\sqrt{ \left ( 1+\cos \left ( dx+c \right ) \right ) ^{-1}}\sqrt{{\frac{\cos \left ( dx+c \right ) }{1+\cos \left ( dx+c \right ) }}}\sin \left ( dx+c \right ){\it EllipticF} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) }{\sin \left ( dx+c \right ) }},i \right ) -C \left ( \cos \left ( dx+c \right ) \right ) ^{2}+C\cos \left ( dx+c \right ) \right ) \sqrt{{\frac{b}{\cos \left ( dx+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \cos \left (d x + c\right )^{2} + A\right )} \sqrt{b \sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (C \cos \left (d x + c\right )^{2} + A\right )} \sqrt{b \sec \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec{\left (c + d x \right )}} \left (A + C \cos ^{2}{\left (c + d x \right )}\right )\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \cos \left (d x + c\right )^{2} + A\right )} \sqrt{b \sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]